<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>技能交换 - 筛选查询</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome 图标 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    
    <style>
        :root {
            --primary: #3b82f6;
            --primary-light: #60a5fa;
            --primary-dark: #2563eb;
            --secondary: #8b5cf6;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --bg-light: #f8fafc;
            --bg-white: #ffffff;
            --border-light: #e2e8f0;
            --radius: 12px;
            --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: var(--bg-light);
            color: var(--text-primary);
            padding-top: 56px;
            padding-bottom: 60px;
        }
        
        /* 顶部导航 */
        .top-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 56px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            z-index: 1000;
            border-bottom: 1px solid var(--border-light);
        }
        
        .nav-title {
            font-size: 1.1rem;
            font-weight: 600;
        }
        
        .nav-action {
            color: var(--text-secondary);
            background: none;
            border: none;
            font-size: 1.2rem;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .nav-action:hover {
            background-color: var(--bg-light);
        }
        
        .nav-action.primary {
            color: var(--primary);
        }
        
        /* 搜索区域 */
        .search-container {
            padding: 12px 16px;
            background-color: var(--bg-white);
            border-bottom: 1px solid var(--border-light);
        }
        
        .search-box {
            position: relative;
            display: flex;
            gap: 10px;
        }
        
        .search-input {
            flex: 1;
            padding: 10px 16px 10px 40px;
            border-radius: 30px;
            border: 1px solid var(--border-light);
            font-size: 0.9rem;
            background-color: var(--bg-light);
        }
        
        .search-input:focus {
            outline: none;
            border-color: var(--primary-light);
        }
        
        .search-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
        }
        
        .voice-search {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background-color: var(--bg-light);
            border: 1px solid var(--border-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
        }
        
        /* 筛选器容器 */
        .filters-container {
            background-color: var(--bg-white);
            border-bottom: 1px solid var(--border-light);
            overflow: hidden;
        }
        
        /* 筛选器切换栏 */
        .filters-tabs {
            display: flex;
            border-bottom: 1px solid var(--border-light);
        }
        
        .filter-tab {
            flex: 1;
            padding: 12px 0;
            text-align: center;
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--text-secondary);
            position: relative;
        }
        
        .filter-tab.active {
            color: var(--primary);
        }
        
        .filter-tab.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 2px;
            background-color: var(--primary);
        }
        
        /* 筛选内容区域 */
        .filter-content {
            padding: 16px;
            display: none;
        }
        
        .filter-content.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* 分类筛选 */
        .category-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-bottom: 16px;
        }
        
        .category-item {
            padding: 12px 8px;
            background-color: var(--bg-light);
            border-radius: var(--radius);
            font-size: 0.85rem;
            text-align: center;
            color: var(--text-primary);
            border: 1px solid var(--border-light);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
        }
        
        .category-item.active {
            background-color: rgba(59, 130, 246, 0.1);
            color: var(--primary);
            border-color: var(--primary);
        }
        
        .category-icon {
            font-size: 1.2rem;
        }
        
        /* 条件筛选 */
        .filter-section {
            margin-bottom: 20px;
        }
        
        .filter-section-title {
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 12px;
            color: var(--text-primary);
        }
        
        /* 距离筛选 */
        .distance-slider-container {
            padding: 10px 0;
        }
        
        .distance-slider {
            width: 100%;
            accent-color: var(--primary);
        }
        
        .distance-value {
            text-align: center;
            font-size: 0.9rem;
            color: var(--primary);
            margin-top: 8px;
        }
        
        /* 时间筛选 */
        .time-options {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .time-option {
            padding: 6px 14px;
            background-color: var(--bg-light);
            border-radius: 20px;
            font-size: 0.85rem;
            color: var(--text-primary);
            border: 1px solid var(--border-light);
        }
        
        .time-option.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        /* 技能水平筛选 */
        .level-options {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            padding-bottom: 8px;
        }
        
        .level-option {
            flex: 1;
            min-width: 60px;
            padding: 10px 0;
            background-color: var(--bg-light);
            border-radius: var(--radius);
            font-size: 0.85rem;
            text-align: center;
            color: var(--text-primary);
            border: 1px solid var(--border-light);
        }
        
        .level-option.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        /* 热门标签筛选 */
        .tags-container {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .filter-tag {
            padding: 6px 12px;
            background-color: var(--bg-light);
            border-radius: 20px;
            font-size: 0.8rem;
            color: var(--text-primary);
            border: 1px solid var(--border-light);
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .filter-tag.active {
            background-color: rgba(59, 130, 246, 0.1);
            color: var(--primary);
            border-color: var(--primary);
        }
        
        .tag-remove {
            display: none;
        }
        
        .filter-tag.active .tag-remove {
            display: inline;
        }
        
        /* 已选筛选器 */
        .selected-filters {
            padding: 12px 16px;
            background-color: var(--bg-white);
            border-bottom: 1px solid var(--border-light);
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
        }
        
        .selected-filters-title {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-right: 4px;
        }
        
        .selected-filter {
            padding: 4px 10px;
            background-color: rgba(59, 130, 246, 0.1);
            color: var(--primary);
            border-radius: 20px;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .remove-filter {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background-color: rgba(59, 130, 246, 0.2);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.6rem;
        }
        
        .clear-all {
            margin-left: auto;
            font-size: 0.85rem;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        /* 列表工具栏 */
        .list-toolbar {
            padding: 10px 16px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--border-light);
        }
        
        .toolbar-title {
            font-size: 0.9rem;
            font-weight: 600;
        }
        
        .sort-options {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            color: var(--text-secondary);
        }
        
        .sort-select {
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 0.85rem;
            padding: 2px;
        }
        
        /* 技能交换列表 */
        .exchange-list {
            padding: 12px 16px;
        }
        
        /* 技能卡片基础样式 */
        .skill-card {
            background-color: var(--bg-white);
            border-radius: var(--radius);
            margin-bottom: 14px;
            box-shadow: var(--shadow);
            overflow: hidden;
            border: 1px solid var(--border-light);
        }
        
        /* 卡片头部 */
        .card-header {
            padding: 14px 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--border-light);
        }
        
        .user-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .user-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .user-details {
            min-width: 0;
        }
        
        .user-name {
            font-weight: 600;
            font-size: 0.95rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .user-meta {
            font-size: 0.75rem;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        /* 卡片内容 */
        .card-content {
            padding: 14px 16px;
        }
        
        .skill-title {
            font-weight: 600;
            font-size: 1rem;
            margin-bottom: 8px;
            color: var(--text-primary);
        }
        
        .skill-description {
            font-size: 0.85rem;
            line-height: 1.5;
            color: var(--text-secondary);
            margin-bottom: 12px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        /* 技能标签区域 */
        .skills-exchange {
            display: flex;
            margin-bottom: 12px;
            gap: 10px;
            align-items: center;
        }
        
        .skill-offer, .skill-seek {
            flex: 1;
        }
        
        .skill-label {
            font-size: 0.75rem;
            color: var(--text-secondary);
            margin-bottom: 4px;
            display: block;
        }
        
        .skill-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        
        .skill-tag {
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.75rem;
            white-space: nowrap;
        }
        
        .offer-tag {
            background-color: rgba(16, 185, 129, 0.1);
            color: var(--success);
            border: 1px solid rgba(16, 185, 129, 0.2);
        }
        
        .seek-tag {
            background-color: rgba(139, 92, 246, 0.1);
            color: var(--secondary);
            border: 1px solid rgba(139, 92, 246, 0.2);
        }
        
        .exchange-icon {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }
        
        /* 图片区域 */
        .media-container {
            margin: 12px 0;
            border-radius: 8px;
            overflow: hidden;
        }
        
        .media-multiple {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 4px;
        }
        
        .media-item {
            aspect-ratio: 1;
            overflow: hidden;
        }
        
        .media-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        /* 无图样式 */
        .no-media .media-container {
            display: none;
        }
        
        /* 卡片底部操作区 */
        .card-actions {
            padding: 10px 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid var(--border-light);
        }
        
        .action-stats {
            display: flex;
            gap: 16px;
            font-size: 0.8rem;
            color: var(--text-secondary);
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .contact-btn {
            padding: 6px 16px;
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 0.85rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        /* 加载更多 */
        .load-more {
            padding: 15px 0;
            text-align: center;
            font-size: 0.9rem;
            color: var(--primary);
        }
        
        /* 底部导航 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-around;
            align-items: center;
            border-top: 1px solid var(--border-light);
            z-index: 1000;
        }
        
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            font-size: 0.7rem;
            gap: 4px;
            flex: 1;
            height: 100%;
        }
        
        .nav-item.active {
            color: var(--primary);
        }
        
        .nav-icon {
            font-size: 1.2rem;
        }
        
        /* 浮动按钮 */
        .float-btn {
            position: fixed;
            right: 20px;
            bottom: 80px;
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background-color: var(--primary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
            z-index: 999;
        }
        
        /* 筛选器展开/收起按钮 */
        .filter-toggle {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8px 0;
            background-color: var(--bg-white);
            border-bottom: 1px solid var(--border-light);
            color: var(--text-secondary);
            font-size: 0.85rem;
        }
        
        .toggle-icon {
            margin-left: 6px;
            transition: transform 0.3s ease;
        }
        
        .toggle-icon.rotate {
            transform: rotate(180deg);
        }
        
        /* 提示消息 */
        .toast {
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 16px;
            border-radius: 4px;
            z-index: 9999;
            font-size: 0.85rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .toast.show {
            opacity: 1;
        }
    </style>
</head>
<body>
    <!-- 顶部导航 -->
    <div class="top-nav">
        <button class="nav-action" id="backBtn">
            <i class="fas fa-arrow-left"></i>
        </button>
        <div class="nav-title">技能交换</div>
        <button class="nav-action primary" id="searchBtn">
            <i class="fas fa-search"></i>
        </button>
    </div>
    
    <!-- 搜索区域 -->
    <div class="search-container">
        <div class="search-box">
            <i class="fas fa-search search-icon"></i>
            <input type="text" class="search-input" placeholder="搜索技能、标签或用户名...">
            <button class="voice-search">
                <i class="fas fa-microphone"></i>
            </button>
        </div>
    </div>
    
    <!-- 筛选器切换按钮 -->
    <div class="filter-toggle" id="filterToggle">
        <span>筛选条件</span>
        <i class="fas fa-chevron-down toggle-icon" id="toggleIcon"></i>
    </div>
    
    <!-- 筛选器容器 -->
    <div class="filters-container" id="filtersContainer">
        <!-- 筛选器切换栏 -->
        <div class="filters-tabs">
            <div class="filter-tab active" data-filter="category">分类</div>
            <div class="filter-tab" data-filter="condition">条件</div>
            <div class="filter-tab" data-filter="tags">热门标签</div>
        </div>
        
        <!-- 1. 分类筛选内容 -->
        <div class="filter-content active" id="category-filter">
            <div class="category-grid">
                <div class="category-item active">
                    <i class="fas fa-th-large category-icon"></i>
                    <span>全部技能</span>
                </div>
                <div class="category-item">
                    <i class="fas fa-language category-icon"></i>
                    <span>语言学习</span>
                </div>
                <div class="category-item">
                    <i class="fas fa-paint-brush category-icon"></i>
                    <span>艺术创作</span>
                </div>
                <div class="category-item">
                    <i class="fas fa-dumbbell category-icon"></i>
                    <span>运动健身</span>
                </div>
                <div class="category-item">
                    <i class="fas fa-laptop-code category-icon"></i>
                    <span>数码科技</span>
                </div>
                <div class="category-item">
                    <i class="fas fa-utensils category-icon"></i>
                    <span>美食烹饪</span>
                </div>
                <div class="category-item">
                    <i class="fas fa-hammer category-icon"></i>
                    <span>手工制作</span>
                </div>
                <div class="category-item">
                    <i class="fas fa-briefcase category-icon"></i>
                    <span>职场技能</span>
                </div>
                <div class="category-item">
                    <i class="fas fa-home category-icon"></i>
                    <span>生活技巧</span>
                </div>
            </div>
            
            <div style="text-align: center; padding: 8px 0;">
                <button class="btn btn-primary btn-sm" style="padding: 6px 24px; border-radius: 20px;">
                    确定
                </button>
            </div>
        </div>
        
        <!-- 2. 条件筛选内容 -->
        <div class="filter-content" id="condition-filter">
            <div class="filter-section">
                <div class="filter-section-title">距离范围</div>
                <div class="distance-slider-container">
                    <input type="range" min="1" max="50" value="10" class="distance-slider" id="distanceSlider">
                    <div class="distance-value" id="distanceValue">10公里以内</div>
                </div>
            </div>
            
            <div class="filter-section">
                <div class="filter-section-title">发布时间</div>
                <div class="time-options">
                    <div class="time-option active">全部时间</div>
                    <div class="time-option">今天</div>
                    <div class="time-option">本周</div>
                    <div class="time-option">本月</div>
                </div>
            </div>
            
            <div class="filter-section">
                <div class="filter-section-title">技能水平</div>
                <div class="level-options">
                    <div class="level-option active">全部</div>
                    <div class="level-option">入门</div>
                    <div class="level-option">初级</div>
                    <div class="level-option">中级</div>
                    <div class="level-option">高级</div>
                    <div class="level-option">专业</div>
                </div>
            </div>
            
            <div class="filter-section">
                <div class="filter-section-title">是否有图片</div>
                <div class="time-options">
                    <div class="time-option active">全部</div>
                    <div class="time-option">仅含图片</div>
                    <div class="time-option">无图片</div>
                </div>
            </div>
            
            <div style="text-align: center; padding: 8px 0;">
                <button class="btn btn-secondary btn-sm" style="padding: 6px 20px; border-radius: 20px; margin-right: 10px;">
                    重置
                </button>
                <button class="btn btn-primary btn-sm" style="padding: 6px 24px; border-radius: 20px;">
                    确定
                </button>
            </div>
        </div>
        
        <!-- 3. 热门标签筛选内容 -->
        <div class="filter-content" id="tags-filter">
            <div class="filter-section">
                <div class="filter-section-title">热门技能标签</div>
                <div class="tags-container">
                    <div class="filter-tag active">
                        <span>Python</span>
                        <i class="fas fa-times tag-remove"></i>
                    </div>
                    <div class="filter-tag">
                        <span>英语</span>
                        <i class="fas fa-times tag-remove"></i>
                    </div>
                    <div class="filter-tag active">
                        <span>摄影</span>
                        <i class="fas fa-times tag-remove"></i>
                    </div>
                    <div class="filter-tag">
                        <span>健身</span>
                        <i class="fas fa-times tag-remove"></i>
                    </div>
                    <div class="filter-tag">
                        <span>烹饪</span>
                        <i class="fas fa-times tag-remove"></i>
                    </div>
                    <div class="filter-tag">
                        <span>吉他</span>
                        <i class="fas fa-times tag-remove"></i>
                    </div>
                    <div class="filter-tag">
                        <span>瑜伽</span>
                        <i class="fas fa-times tag-remove"></i>
                    </div>
                    <div class="filter-tag">
                        <span>PS</span>
                        <i class="fas fa-times tag-remove"></i>
                    </div>
                    <div class="filter-tag">
                        <span>日语</span>
                        <i class="fas fa-times tag-remove"></i>
                    </div>
                    <div class="filter-tag">
                        <span>烘焙</span>
                        <i class="fas fa-times tag-remove"></i>
                    </div>
                    <div class="filter-tag">
                        <span>UI设计</span>
                        <i class="fas fa-times tag-remove"></i>
                    </div>
                    <div class="filter-tag">
                        <span>舞蹈</span>
                        <i class="fas fa-times tag-remove"></i>
                    </div>
                </div>
            </div>
            
            <div class="filter-section">
                <div class="filter-section-title">交换场景</div>
                <div class="tags-container">
                    <div class="filter-tag">
                        <span>线上教学</span>
                        <i class="fas fa-times tag-remove"></i>
                    </div>
                    <div class="filter-tag">
                        <span>线下见面</span>
                        <i class="fas fa-times tag-remove"></i>
                    </div>
                    <div class="filter-tag">
                        <span>一对一</span>
                        <i class="fas fa-times tag-remove"></i>
                    </div>
                    <div class="filter-tag">
                        <span>小组学习</span>
                        <i class="fas fa-times tag-remove"></i>
                    </div>
                </div>
            </div>
            
            <div style="text-align: center; padding: 8px 0;">
                <button class="btn btn-primary btn-sm" style="padding: 6px 24px; border-radius: 20px;">
                    确定
                </button>
            </div>
        </div>
    </div>
    
    <!-- 已选筛选器 -->
    <div class="selected-filters">
        <span class="selected-filters-title">已选：</span>
        <div class="selected-filter">
            <span>摄影</span>
            <span class="remove-filter">×</span>
        </div>
        <div class="selected-filter">
            <span>Python</span>
            <span class="remove-filter">×</span>
        </div>
        <div class="selected-filter">
            <span>10公里以内</span>
            <span class="remove-filter">×</span>
        </div>
        <div class="clear-all">
            <i class="fas fa-trash-alt"></i>
            <span>清除全部</span>
        </div>
    </div>
    
    <!-- 列表工具栏 -->
    <div class="list-toolbar">
        <div class="toolbar-title">找到 16 个技能交换</div>
        <div class="sort-options">
            <span>排序：</span>
            <select class="sort-select">
                <option>推荐优先</option>
                <option>最新发布</option>
                <option>距离最近</option>
                <option>热门程度</option>
            </select>
        </div>
    </div>
    
    <!-- 技能交换列表 -->
    <div class="exchange-list">
        <!-- 1. 多图技能卡片 -->
        <div class="skill-card">
            <div class="card-header">
                <div class="user-info">
                    <img src="https://picsum.photos/id/64/200/200" alt="陈佳琪" class="user-avatar">
                    <div class="user-details">
                        <div class="user-name">陈佳琪</div>
                        <div class="user-meta">
                            <span><i class="fas fa-map-marker-alt"></i> 3.2km</span>
                            <span><i class="fas fa-clock"></i> 今天活跃</span>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="card-content">
                <h3 class="skill-title">UI设计技能交换摄影技巧</h3>
                
                <p class="skill-description">
                    我是一名UI设计师，有5年工作经验，可以教你UI设计、原型制作和基础设计理论。希望学习摄影技巧，尤其是人像和风光摄影。
                </p>
                
                <div class="skills-exchange">
                    <div class="skill-offer">
                        <span class="skill-label">我能提供</span>
                        <div class="skill-tags">
                            <span class="skill-tag offer-tag">UI设计</span>
                            <span class="skill-tag offer-tag">原型制作</span>
                        </div>
                    </div>
                    
                    <div class="exchange-icon">
                        <i class="fas fa-exchange-alt"></i>
                    </div>
                    
                    <div class="skill-seek">
                        <span class="skill-label">我想学习</span>
                        <div class="skill-tags">
                            <span class="skill-tag seek-tag">摄影技巧</span>
                            <span class="skill-tag seek-tag">后期修图</span>
                        </div>
                    </div>
                </div>
                
                <div class="media-container media-multiple">
                    <div class="media-item">
                        <img src="https://picsum.photos/id/119/300/300" alt="设计作品1" class="media-image">
                    </div>
                    <div class="media-item">
                        <img src="https://picsum.photos/id/133/300/300" alt="设计作品2" class="media-image">
                    </div>
                    <div class="media-item">
                        <img src="https://picsum.photos/id/142/300/300" alt="设计作品3" class="media-image">
                    </div>
                </div>
            </div>
            
            <div class="card-actions">
                <div class="action-stats">
                    <div class="stat-item">
                        <i class="far fa-eye"></i>
                        <span>128</span>
                    </div>
                    <div class="stat-item">
                        <i class="far fa-comment"></i>
                        <span>24</span>
                    </div>
                </div>
                <button class="contact-btn" data-user="陈佳琪">
                    <i class="fas fa-comment"></i> 联系TA
                </button>
            </div>
        </div>
        
        <!-- 2. 无图技能卡片 -->
        <div class="skill-card no-media">
            <div class="card-header">
                <div class="user-info">
                    <img src="https://picsum.photos/id/91/200/200" alt="王建国" class="user-avatar">
                    <div class="user-details">
                        <div class="user-name">王建国</div>
                        <div class="user-meta">
                            <span><i class="fas fa-map-marker-alt"></i> 8.3km</span>
                            <span><i class="fas fa-clock"></i> 1天前活跃</span>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="card-content">
                <h3 class="skill-title">Python编程换钢琴入门教学</h3>
                
                <p class="skill-description">
                    软件工程师，精通Python、JavaScript等编程语言，可教授编程入门和网页开发。一直想学习钢琴，希望找到能教钢琴基础的朋友。
                </p>
                
                <div class="skills-exchange">
                    <div class="skill-offer">
                        <span class="skill-label">我能提供</span>
                        <div class="skill-tags">
                            <span class="skill-tag offer-tag">Python</span>
                            <span class="skill-tag offer-tag">JavaScript</span>
                            <span class="skill-tag offer-tag">网页开发</span>
                        </div>
                    </div>
                    
                    <div class="exchange-icon">
                        <i class="fas fa-exchange-alt"></i>
                    </div>
                    
                    <div class="skill-seek">
                        <span class="skill-label">我想学习</span>
                        <div class="skill-tags">
                            <span class="skill-tag seek-tag">钢琴入门</span>
                            <span class="skill-tag seek-tag">乐理基础</span>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="card-actions">
                <div class="action-stats">
                    <div class="stat-item">
                        <i class="far fa-eye"></i>
                        <span>74</span>
                    </div>
                    <div class="stat-item">
                        <i class="far fa-comment"></i>
                        <span>12</span>
                    </div>
                </div>
                <button class="contact-btn" data-user="王建国">
                    <i class="fas fa-comment"></i> 联系TA
                </button>
            </div>
        </div>
        
        <!-- 加载更多 -->
        <div class="load-more">
            <span>加载更多技能交换</span>
        </div>
    </div>
    
    <!-- 底部导航 -->
    <div class="bottom-nav">
        <div class="nav-item">
            <i class="fas fa-home nav-icon"></i>
            <span>首页</span>
        </div>
        <div class="nav-item">
            <i class="fas fa-compass nav-icon"></i>
            <span>发现</span>
        </div>
        <div class="nav-item active">
            <i class="fas fa-exchange-alt nav-icon"></i>
            <span>技能交换</span>
        </div>
        <div class="nav-item">
            <i class="fas fa-bell nav-icon"></i>
            <span>通知</span>
        </div>
        <div class="nav-item">
            <i class="fas fa-user nav-icon"></i>
            <span>我的</span>
        </div>
    </div>
    
    <!-- 发布新技能交换的浮动按钮 -->
    <div class="float-btn">
        <i class="fas fa-plus"></i>
    </div>
    
    <!-- 提示消息元素 -->
    <div class="toast" id="toast"></div>
    
    <!-- Bootstrap JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 筛选器展开/收起
        const filterToggle = document.getElementById('filterToggle');
        const filtersContainer = document.getElementById('filtersContainer');
        const toggleIcon = document.getElementById('toggleIcon');
        
        filterToggle.addEventListener('click', function() {
            if (filtersContainer.style.maxHeight) {
                filtersContainer.style.maxHeight = null;
                toggleIcon.classList.remove('rotate');
            } else {
                filtersContainer.style.maxHeight = filtersContainer.scrollHeight + 'px';
                toggleIcon.classList.add('rotate');
            }
        });
        
        // 筛选标签页切换
        document.querySelectorAll('.filter-tab').forEach(tab => {
            tab.addEventListener('click', function() {
                // 切换标签激活状态
                document.querySelectorAll('.filter-tab').forEach(t => t.classList.remove('active'));
                this.classList.add('active');
                
                // 切换内容显示
                const filterId = this.getAttribute('data-filter') + '-filter';
                document.querySelectorAll('.filter-content').forEach(content => {
                    content.classList.remove('active');
                });
                document.getElementById(filterId).classList.add('active');
                
                // 调整容器高度
                filtersContainer.style.maxHeight = filtersContainer.scrollHeight + 'px';
            });
        });
        
        // 分类筛选
        document.querySelectorAll('.category-item').forEach(item => {
            item.addEventListener('click', function() {
                // 全部技能选项单独处理
                if (this.textContent === '全部技能') {
                    document.querySelectorAll('.category-item').forEach(i => i.classList.remove('active'));
                    this.classList.add('active');
                    showToast('已选择全部技能分类');
                } else {
                    this.classList.toggle('active');
                    showToast(this.classList.contains('active') ? 
                        `已添加筛选：${this.textContent}` : 
                        `已移除筛选：${this.textContent}`);
                }
            });
        });
        
        // 距离滑块
        const distanceSlider = document.getElementById('distanceSlider');
        const distanceValue = document.getElementById('distanceValue');
        
        distanceSlider.addEventListener('input', function() {
            const value = this.value;
            distanceValue.textContent = `${value}公里以内`;
        });
        
        // 时间选项筛选
        document.querySelectorAll('.time-option').forEach(option => {
            option.addEventListener('click', function() {
                // 找到同级的所有选项并移除active类
                const parent = this.parentElement;
                parent.querySelectorAll('.time-option').forEach(opt => opt.classList.remove('active'));
                
                // 为当前选项添加active类
                this.classList.add('active');
                showToast(`已选择：${this.textContent}`);
            });
        });
        
        // 技能水平筛选
        document.querySelectorAll('.level-option').forEach(option => {
            option.addEventListener('click', function() {
                const parent = this.parentElement;
                parent.querySelectorAll('.level-option').forEach(opt => opt.classList.remove('active'));
                this.classList.add('active');
                showToast(`已选择技能水平：${this.textContent}`);
            });
        });
        
        // 标签筛选
        document.querySelectorAll('.filter-tag').forEach(tag => {
            tag.addEventListener('click', function(e) {
                // 如果点击的是删除图标，直接移除选中状态
                if (e.target.classList.contains('tag-remove')) {
                    this.classList.remove('active');
                    showToast(`已移除标签：${this.querySelector('span').textContent}`);
                    e.stopPropagation();
                } else {
                    this.classList.toggle('active');
                    showToast(this.classList.contains('active') ? 
                        `已添加标签：${this.querySelector('span').textContent}` : 
                        `已移除标签：${this.querySelector('span').textContent}`);
                }
            });
        });
        
        // 移除已选筛选器
        document.querySelectorAll('.remove-filter').forEach(btn => {
            btn.addEventListener('click', function() {
                const filterText = this.parentElement.querySelector('span').textContent;
                this.parentElement.remove();
                showToast(`已移除筛选：${filterText}`);
                
                // 如果没有筛选器了，隐藏清除全部按钮
                if (document.querySelectorAll('.selected-filter').length === 0) {
                    document.querySelector('.clear-all').style.display = 'none';
                }
            });
        });
        
        // 清除全部筛选器
        document.querySelector('.clear-all').addEventListener('click', function() {
            document.querySelectorAll('.selected-filter').forEach(filter => {
                filter.remove();
            });
            this.style.display = 'none';
            showToast('已清除全部筛选条件');
        });
        
        // 搜索功能
        document.querySelector('.search-input').addEventListener('keypress', function(e) {
            if (e.key === 'Enter' && this.value.trim()) {
                showToast(`搜索：${this.value.trim()}`);
            }
        });
        
        document.getElementById('searchBtn').addEventListener('click', function() {
            const searchInput = document.querySelector('.search-input');
            if (searchInput.value.trim()) {
                showToast(`搜索：${searchInput.value.trim()}`);
            } else {
                searchInput.focus();
            }
        });
        
        // 语音搜索
        document.querySelector('.voice-search').addEventListener('click', function() {
            showToast('语音搜索已激活');
        });
        
        // 联系按钮
        document.querySelectorAll('.contact-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                const userName = this.getAttribute('data-user');
                showToast(`打开与${userName}的聊天窗口`);
            });
        });
        
        // 返回按钮
        document.getElementById('backBtn').addEventListener('click', function() {
            history.back();
        });
        
        // 提示消息功能
        function showToast(message) {
            const toast = document.getElementById('toast');
            toast.textContent = message;
            toast.classList.add('show');
            
            setTimeout(() => {
                toast.classList.remove('show');
            }, 2000);
        }
        
        // 初始化筛选器高度
        window.addEventListener('load', function() {
            filtersContainer.style.maxHeight = filtersContainer.scrollHeight + 'px';
        });
    </script>
</body>
</html>

